<?php

namespace app\admin\model\setup;

use think\Model;

/**
 * Taxgrouptaxes
 */
class Taxgrouptaxes extends Model
{
    // 表主键
    protected $pk = 'taxgroupid';
    
    // 表名
    protected $name = 'setup_taxgrouptaxes';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function taxgroupidTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\setup\Taxgroups::class, 'taxgroupid', 'taxgroupid');
    }

    public function taxauthidTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\setup\Taxauthorities::class, 'taxauthid', 'taxid');
    }
}